//
//  ViewController.swift
//  testShare
//
//  Created by LiangJianle on 15/9/18.
//  Copyright (c) 2015年 LiangJianle. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    
    @IBAction func shareToFriend(){
        
        var req = SendMessageToWXReq()
        req.scene = Int32(WXSceneSession.value)
        req.text = "文字标题"
        req.bText = true
        WXApi.sendReq(req)
    
    }

    @IBAction func shareToTimeline(){
        
        var req = SendMessageToWXReq()
        req.scene = Int32(WXSceneTimeline.value)
        req.text = "朋友圈"
        req.bText = true
        WXApi.sendReq(req)
        
    }
    
}

